package week.six;

import android.app.Activity;
import android.opengl.*;
import android.os.Bundle;

public class OpenGLESBasicsActivity extends Activity {
    
	private GLSurfaceView glSurface;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
		glSurface = new GLSurfaceView(this);
		glSurface.setRenderer(new Display());
		setContentView(glSurface);
    }
	
	@Override
	public void onResume() {
		super.onResume();
		glSurface.onResume();
	}
	
	@Override
	public void onPause() {
		super.onPause();
		glSurface.onPause();
	}
}